Everything about Las Vegas Algorithm totally explained
In
computing, a
Las Vegas algorithm is a
randomized algorithm that never gives
incorrect results; that is, it always produces the correct result or it informs about the failure. In other words, a
Las Vegas algorithm doesn't gamble with the verity of the result --- it only gambles with the resources used for the computation. A simple example is randomized
quicksort, where the pivot is chosen randomly, but the result is always sorted. The usual definition of a Las Vegas algorithm includes the restriction that the
expected run time always be finite, when the expectation is carried out over the space of random information, or entropy, used in the algorithm.
The
complexity class of
decision problems that have Las Vegas algorithms with
expected polynomial runtime is
ZPP.
It turns out that
»
which is intimately connected with the way Las Vegas algorithms are sometimes constructed. Namely the class
RP consists of all decision problems for which a randomized polynomial-time algorithm exists that always answers correctly when the correct answer is "no", but is allowed to be wrong with a certain probability bounded away from one when the answer is "yes". When such an algorithm exists for both a problem and its complement (with the answers "yes" and "no" swapped), the two algorithms can be run simultaneously and repeatedly: a few steps of each, taking turns, until one of them returns a definitive answer. This is the standard way to construct a Las Vegas algorithm that runs in expected polynomial time. Note that in general there's no worst case upper bound on the run time of a Las Vegas algorithm.
Las Vegas algorithms can be contrasted with
Monte Carlo algorithms, in which the resources used are bounded but the final result may not be 100% accurate.
Further Information
Get more info on 'Las Vegas Algorithm'.
|
External Link Exchanges
Do you know how hard it is to get a link from a large encyclopaedia? Well we're different and will prove it. To get a link from us just add the following HTML to your site on a relevant page:
<a href="http://las_vegas_algorithm.totallyexplained.com">Las Vegas algorithm Totally Explained</a>
Then simply click through this link from your web page. Our crawlers will verify your link, extract the title of your web page and instantly add a link back to it. If you like you can remove the words Totally Explained and embed the link in article text.
As long as your link remains in place, we'll keep our link to you right here. Please play fair - our crawlers are watching. Your site must be closely related to this one's topic. Any kind of spamming, dubious practises or removing the link will result in your link from us being dropped and, potentially, your whole site being banned. |